﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IBupro.Models.StudentFieldModel>" %>
<%@ Import Namespace="IBupro.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Html.Translate("createStudentField") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Html.Translate("createStudentField") %></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend><%: Html.Translate("studentField") %></legend>

            <div class="editor-label">
                <%: Html.Translate("parentStudentPlan") %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("StudentPlan", Model.GetStudentPlanList())%>
                <%: Html.ValidationMessageFor(model => model.Shortcut) %>
            </div>

            <div class="editor-label">
                <%: Html.Translate("name") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>

            <div class="editor-label">
                <%: Html.Translate("shortcut") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Shortcut) %>
                <%: Html.ValidationMessageFor(model => model.Shortcut) %>
            </div>
            
            
               

            <div class="editor-label">
                <%: Html.Translate("subjects") %>
            </div>
            <div class="editor-field">
                <%: Html.ListBox("SelectedSubjects",Model.MultiSelectListSubjects(), new { @class = "select" }) %>
                <%: Html.ValidationMessageFor(model => model.Shortcut) %>
            </div>
            
            <p>
                <input type="submit" value="<%: Html.Translate("create") %>" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

